import type { AxiosRequestConfig } from "axios";

export interface ApiResponse<T> {
  code: number;
  message: string;
  data: T;
}

export const defaultConfig: AxiosRequestConfig = {
  // baseURL: import.meta.env.VITE_API_BASE_URL ? import.meta.env.VITE_API_BASE_URL : 'http://localhost:3000',
  timeout: 10000,
  headers: {
    "Content-Type": "application/json",
  },
  withCredentials: true,
};

export interface PageParams {
  page: number;
  pageSize: number;
}
